﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Sablon.Master" AutoEventWireup="true" CodeBehind="hesaptakvimi.aspx.cs" Inherits="OnlineDovizOtomasyonu.hesaptakvimi" Culture="tr-TR" %>

<%@ Register Assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxScheduler.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxScheduler" tagprefix="dxwschs" %>
<%@ Register assembly="DevExpress.XtraScheduler.v12.1.Core, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.XtraScheduler" tagprefix="cc1" %>
<%@ Register assembly="DevExpress.Web.v12.1, Version=12.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="width: 100%; height: 250px; position:absolute; z-index: 99999;">
<%--    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" 
        HeaderText="Takvim Sistemi" Theme="Aqua" Height="200px">
        <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">--%>
<table cellpadding="0" cellspacing="0" class="style1">
        <tr>
            <td valign="top">
                <dxwschs:ASPxScheduler ID="webingTakvim" runat="server" Theme="Aqua" 
                    ActiveViewType="WorkWeek" AppointmentDataSourceID="sdTakvimHesap" 
                    ClientIDMode="AutoID" Start="2013-11-04" ResourceDataSourceID="sdMusteri">
                    <Storage>
                        <Appointments>
                            <Mappings AllDay="AllDay" AppointmentId="UniqueID" Description="Description" 
                                End="EndDate" Label="Label" Location="Location" RecurrenceInfo="RecurrenceInfo" 
                                ReminderInfo="ReminderInfo" ResourceId="ResourceID" Start="StartDate" 
                                Status="Status" Subject="Subject" Type="Type" />
                        </Appointments>
                        <Resources>
                            <Mappings Caption="ADI" ResourceId="ID" />
                        </Resources>
                    </Storage>
<Views>
<DayView ShowWorkTimeOnly="true">
<WorkTime Start="07:00" End="19:00" />
<TimeRulers>
<cc1:TimeRuler></cc1:TimeRuler>
</TimeRulers>
</DayView>

<WorkWeekView ShowWorkTimeOnly="true">
<WorkTime Start="07:00" End="19:00" />
<TimeRulers>
<cc1:TimeRuler></cc1:TimeRuler>
</TimeRulers>
</WorkWeekView>
</Views>

<ClientSideEvents MouseUp=""></ClientSideEvents>
                    <Images>
                        <ViewNavigator>
                            <Today AlternateText="Bugün">
                            </Today>
                        </ViewNavigator>
                        <LoadingPanel AlternateText="Lütfen Bekleyin...">
                        </LoadingPanel>
                    </Images>
                    <OptionsLoadingPanel Text="Lütfen Bekleyin..." />
                </dxwschs:ASPxScheduler>
                <asp:SqlDataSource ID="sdMusteri" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:webingdovizlistelericinbaglanti %>" 
                    SelectCommand="SELECT [ID], [KODU], [ADI], [GRUP], [DURUM] FROM [WEBINGDOVIZ_TBLCARI] WHERE ([DURUM] = @DURUM)">
                    <SelectParameters>
                        <asp:Parameter DefaultValue="1" Name="DURUM" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="sdTakvimHesap" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:webingdovizlistelericinbaglanti %>" 
                    DeleteCommand="DELETE FROM [Appointments] WHERE [UniqueID] = @UniqueID" 
                    InsertCommand="INSERT INTO [Appointments] ([Type], [StartDate], [EndDate], [AllDay], [Subject], [Location], [Description], [Status], [Label], [ResourceID], [ResourceIDs], [ReminderInfo], [RecurrenceInfo], [CustomField1]) VALUES (@Type, @StartDate, @EndDate, @AllDay, @Subject, @Location, @Description, @Status, @Label, @ResourceID, @ResourceIDs, @ReminderInfo, @RecurrenceInfo, @CustomField1)" 
                    SelectCommand="SELECT * FROM [Appointments]" 
                    UpdateCommand="UPDATE [Appointments] SET [Type] = @Type, [StartDate] = @StartDate, [EndDate] = @EndDate, [AllDay] = @AllDay, [Subject] = @Subject, [Location] = @Location, [Description] = @Description, [Status] = @Status, [Label] = @Label, [ResourceID] = @ResourceID, [ResourceIDs] = @ResourceIDs, [ReminderInfo] = @ReminderInfo, [RecurrenceInfo] = @RecurrenceInfo, [CustomField1] = @CustomField1 WHERE [UniqueID] = @UniqueID">
                    <DeleteParameters>
                        <asp:Parameter Name="UniqueID" Type="Int32" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="Type" Type="Int32" />
                        <asp:Parameter Name="StartDate" Type="DateTime" />
                        <asp:Parameter Name="EndDate" Type="DateTime" />
                        <asp:Parameter Name="AllDay" Type="Boolean" />
                        <asp:Parameter Name="Subject" Type="String" />
                        <asp:Parameter Name="Location" Type="String" />
                        <asp:Parameter Name="Description" Type="String" />
                        <asp:Parameter Name="Status" Type="Int32" />
                        <asp:Parameter Name="Label" Type="Int32" />
                        <asp:Parameter Name="ResourceID" Type="Int32" />
                        <asp:Parameter Name="ResourceIDs" Type="String" />
                        <asp:Parameter Name="ReminderInfo" Type="String" />
                        <asp:Parameter Name="RecurrenceInfo" Type="String" />
                        <asp:Parameter Name="CustomField1" Type="String" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="Type" Type="Int32" />
                        <asp:Parameter Name="StartDate" Type="DateTime" />
                        <asp:Parameter Name="EndDate" Type="DateTime" />
                        <asp:Parameter Name="AllDay" Type="Boolean" />
                        <asp:Parameter Name="Subject" Type="String" />
                        <asp:Parameter Name="Location" Type="String" />
                        <asp:Parameter Name="Description" Type="String" />
                        <asp:Parameter Name="Status" Type="Int32" />
                        <asp:Parameter Name="Label" Type="Int32" />
                        <asp:Parameter Name="ResourceID" Type="Int32" />
                        <asp:Parameter Name="ResourceIDs" Type="String" />
                        <asp:Parameter Name="ReminderInfo" Type="String" />
                        <asp:Parameter Name="RecurrenceInfo" Type="String" />
                        <asp:Parameter Name="CustomField1" Type="String" />
                        <asp:Parameter Name="UniqueID" Type="Int32" />
                    </UpdateParameters>
                </asp:SqlDataSource>
            </td>
            <td valign="top">
                <dxwschs:ASPxDateNavigator ID="ASPxDateNavigator1" runat="server" 
                    ClientIDMode="AutoID" MasterControlID="webingTakvim" Theme="Aqua">
                    <Properties Rows="3" TodayButtonText="Bugün">
                    </Properties>
                </dxwschs:ASPxDateNavigator> </td>
        </tr>
    </table>
<%--
</dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>--%>
</div>
    
</asp:Content>
